<template>
  <VanConfigProvider :theme-vars="themeVars">
    <van-loading v-show="loading" class="loading" type="spinner" color="#1989fa"></van-loading>
    <router-view></router-view>
    <MyFooter></MyFooter>
  </VanConfigProvider>
</template>

<script>
import MyFooter from './components/MyFooter.vue';
import { mapState } from 'vuex'
export default {
  components: {
    MyFooter
  },
  data() {
    return {
      themeVars: {
        buttonPrimaryBackgroundColor: 'red'
      }
    }
  },
  computed: {
    ...mapState(['loading'])
  }
}

</script>
<style scoped>

</style>
